#ifndef UBUS_H_
#define UBUS_H_

#include "sgwService.h"
// #define USE_OPENWRT_UBUS

#ifdef USE_OPENWRT_UBUS
#include <libubox/blob.h>
 
int ubus_send(const char *type, struct blob_attr *data);
int ubus_call(const char *path, const char *method,
		struct blob_attr *data, struct blob_attr **ret);
 
int  ubus_init(void);
void ubus_destory();

#endif //USE_OPENWRT_UBUS 
void rpc_smartgw_init();
void rpc_smartgw_destory();
#endif